home *** CD-ROM | disk | FTP | other *** search
/ The Hacker Chronicles - A…the Computer Underground / The Hacker Chronicles - A Tour of the Computer Underground (P-80 Systems).iso / phreak / billdist.txt < prev    next >
Internet Message Format  |  1992-03-03  |  2KB

  1. From: Dave Esan <moscom!de@cs.rochester.edu>
  2. Subject: Re: Coordinate Tape Info Request
  3. Organization: Moscom Corp., E. Rochester, NY
  4.  
  5.  
  6. This followup to an article bounced back here.  I'll try again.
  7.  
  8. In article <telecom-v09i0445m03@vector.dallas.tx.us> you write:
  9. >Well, it is my understanding that the units in the V&H master database
  10. >are miles.  This allows the milage based costing of the phone company
  11. >services to be calculated using the simple distance formula:
  12.  
  13. >sqrt( (x1- x2)^2 + (y1 - y2)^2 )
  14.  
  15. >although the phone companies really use the following formula:
  16.  
  17. >sqrt( ( (v1 - v2)^2 + (h1 -h2)^2 )/10 ).
  18.  
  19. V and H coordinates are points on a grid spread over North America.  Being
  20. points they will be dimensionless.  One can calculate the distance between
  21. any two points using the V and the H coordinates and simple geometry -
  22. eg the distance is sqrt( (x1- x2)^2 + (y1 - y2)^2 ), as noted above.  But
  23. this will be wrong.  The Earth is round, and this distance will not be correct.
  24.  
  25. There is a distance method given in FCC #10, page 13.  Basically it is
  26. as follows:
  27.  
  28. 1. Calculate the difference in V coordinates, and H coordinates.
  29. 2. Divide each by three.
  30. 3. Square the numbers and add them.
  31. 4. If the sum of the square is > 1777 go to step #2.  (Forgive me for using
  32.    a goto statement.)
  33. 5. If the sum of the square is < 1777 multiply it by a fudge factor based on
  34.    the number of divisions done.
  35. 6. Take the square root of the product, and round up.
  36.  
  37. Of course, if it is zoned city you have to worry if the distance is < 40
  38. miles, in which case you have to recalculate using the zones coordinates
  39. rather than the master coordinates.  Unless of course, this distance is
  40. greater than 40 miles, in which case you use the regular calculation.
  41.  
  42. The distance between coordinates is supposed to be about 180 yards. (Maybe
  43. 173 yards = 1/10 mile?).  The point (0,0) is someplace in the Atlantic.
  44. Unlike ATT which calculates that cost of a call to Puerto Rico based on
  45. 3 costing bands, Sprint calculates the mileage using a fake coordinate that
  46. has a negative H component.
  47.  
  48.  -->        David Esan                rochester!moscom!de
  49.  
  50. ------------------------------
  51. Downloaded From P-80 Systems 304-744-2253
  52.  
  53.